package lab04.test03;

public class myThread extends Thread {
    String ch1 = "A";
    String ch2 = "B";
    @Override
    public void run() {
        while (true) {
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            System.out.print(ch1);
            System.out.print(ch2);
        }
    }
}